package com.syh.jn.scm.infrastructure.repository.model.system;

import com.syh.core.ddd.infrastructure.repository.model.SuperModel;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@Table(name = "T_SYSTEM_MENU_PERMISSION")
@EqualsAndHashCode(callSuper = true)
public class MenuPermissionModel extends SuperModel {

  @Column(name = "MENU_ID", columnDefinition = "bigint COMMENT '菜单ID'")
  private Long menuId;

  @Column(name = "PERMISSION_ID", columnDefinition = "bigint COMMENT '权限ID'")
  private Long permissionId;
}
